#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a, b, t ;
	scanf("%d%d", &a ,& b);
	t = a;;
	a = b;
	b = t;
	printf("%d\n%d", a, b);
	return 0;
}